//
//  TransforController.h
//  WisdomZhuHai
//
//  Created by JasonLee on 15/1/16.
//  Copyright (c) 2015年 wyd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ThirdViewController.h"
#import "Common.h"
#import "PersonViewController.h"
#import "ToolsViewController.h"
#import "SpecialMessageViewController.h"
#import "TabBarBaseViewController.h"
#import "SecondViewController.h"

#define HEIGHT_STATUS_BAR 20
#define HEIGHT_NAVIGATION_BAR 45
#define HEIGHT_BOTTOM_BAR 45
#define HEIGHT_MENU_BAR 30

@interface TransforController : NSObject

#pragma mark - 单例方法
+(TransforController *) sharedInstance;

+(ThirdViewController *)sharedInstanceOfThirdViewController;

+(SecondViewController *)sharedInstanceOfSecondViewController;

+(PersonViewController *)sharedInstanceOfPersonViewController;

+(ToolsViewController *)sharedInstanceOfToolsViewController;

+(SpecialMessageViewController *)sharedInstanceOfSpecialMessageViewController;

+(TabBarBaseViewController *)sharedInstanceOfTabBarBaseViewController;

#pragma mark - 获取属性
+(UIColor *)getColorWithRed:(int)red andGreen:(int)green andBlue:(int)blue andAlpha:(int)alpha;
+(UIColor *)getColorWithRGB:(int)rgb;
+(UIFont *)getFontWithFont:(NSString *)font andSize:(CGFloat)size;
+(CGRect)getRectOfView:(UIView *)view withHasNavigationBar:(BOOL)hasNavigationBar andHasBottomBar:(BOOL)hasBottomBar;


#pragma mark - 获取导航栏
+(UIView *)shardeInstanceOfNavigationBarCoverViewWithY:(CGFloat)y;
+(UIView *)shardeInstanceOfNavigationBarCoverViewWithY:(CGFloat)y andBackgroundColor:(UIColor *)color;
+(UIView *)shardeInstanceOfNavigationBarAndStatusBarCoverViewWithY:(CGFloat)y;
+(UIView *)shardeInstanceOfNavigationBarCoverViewWithY:(CGFloat)y andTitle:(NSString *)title;
+(UIView *)shardeInstanceOfNavigationBarAndStatusBarCoverViewWithY:(CGFloat)y andTitle:(NSString *)title;



+(void)testModel:(BOOL)boolean;
+(BOOL)isTestModelOn;

#pragma mark - 字符串校验
+(int)getNSStringLength:(NSString*)strtemp;
+(NSString *)getLowOrHighCaseChangeWithString:(NSString *)string andIsChangeToHigh:(BOOL)boolean;
//邮箱
+ (BOOL) validateEmail:(NSString *)email;
//手机号码验证
+ (BOOL) validateMobile:(NSString *)mobile;
//用户名
+ (BOOL) validateUserName:(NSString *)name;
//密码
+ (BOOL) validatePassword:(NSString *)passWord;
//昵称
+ (BOOL) validateNickname:(NSString *)nickname;

#pragma mark - 友盟自定义事件
+(void)umengEvent:(NSString *)eventId attributes:(NSDictionary *)attributes number:(NSNumber *)number ct:(NSString *)ct;

#pragma mark - 插件

@end
